﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp
{
    public class BaseResult
    {
        /// <summary>
        /// 结果代码 Sucess：成功 Fail：失败
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string Message { get; set; }
    }


    public class Result<T> : BaseResult
    {
        public T Data { get; set; }

        public IEnumerable<T> DatList { get; set; }

        public BaseQuery PaddingInfo { get; set; }
    }


    public class BaseQuery
    {
        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 每页大小
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 总记录数
        /// </summary>
        public int PageCount { get; set; }
    }
}
